package 三体时间20058;

public class Main {
    public static void main(String[] args) {
       int totalHours=999*26;
       int days=totalHours/24;
       int hours=totalHours%24;
       System.out.println(days+" "+hours);
    }
}
